﻿using DncLite.Domain.Core.Models;
using System;

namespace DncLite.Domain.Models
{
    /// <summary>
    /// 学生
    /// </summary>
    public class Student : Entity
    {
        protected Student()
        {

        }

        public Student(Guid id,string name,string email,string phone,DateTime birthDate)
        {
            Id = id;
            Name = name;
            Email = email;
            Phone = phone;
            BirthDate = birthDate;
            Address = new Address();
        }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime BirthDate { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public Address Address { get; set; }
    }
}
